#在项目python2中新建文件python2_4.py。首先，新建集合set1={1，2，4}，使用remove删除元素2，随后打印输出;
#新建集合set2={1,5,6}，使用&和|计算出集合交和并，然后打印。
set1 = {1,2,3,4}
set1.remove(2)
print(set1)
set2 = {1,5,6}
union_set = set1 | set2
print(union_set)
intersection_set = set1 & set2
print(intersection_set)